From c0efadc0f399d87251f236286c4fc602100b6887 Mon Sep 17 00:00:00 2001 From: nana-4 Date: Fri, 7 Aug 2020 00:54:40 +0900 Subject: [PATCH] Adwaita: Make frames rounded As per GNOME mockups. Since GtkFrame now sets GTK_OVERFLOW_HIDDEN, we can round the frame without corner overlapping. This also adds some margin to the child label of GtkFrame to ensure it will not be clipped by the rounded corners of the frame. --- gtk/theme/Adwaita/_common.scss | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 64db0790fb..b92747eb5e 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -3005,13 +3005,17 @@ window.dialog.print { **********/ frame, .frame { - box-shadow: none; - margin: 0; - padding: 0; - border-radius: 0; border: 1px solid $borders_color; } +frame { + border-radius: $window_radius; + + > label { + margin: 4px; + } +} + actionbar > revealer > box { padding: 6px; border-top: 1px solid $borders_color; @@ -3220,6 +3224,7 @@ expander-widget { calendar { color: $text_color; border: 1px solid $borders_color; + border-radius: $window_radius; > header { border-bottom: 1px solid $borders_color; -- 2.30.2